from flask_restful import Api

from app import app
from views import user

api = Api(app)


def init_url_router():
    # 登录
    api.add_resource(user.views.UserLoginView, r'/api/login')
    # 注册
    api.add_resource(user.views.UserRegisterView, r'/api/register')


init_url_router()
